﻿@model PagedList<Orange.Mvc4App.Entity.Charge>
<p class="message">
    @if (@ViewBag.Msg != null)
    {
        <img src="../../Content/images/icon-info.gif" alt="提示" />@ViewBag.Msg
    }
</p>
@if (Model != null && Model.PageCount > 0)
{
    <table class="list">
        <tr>
            <th style="width: 180px;">
                用量日期
            </th>
            <th>
                类型
            </th>
            <th>
                用量
            </th>
            <th>
                金额
            </th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @item.Date.ToString("yyyy-MM-dd")
                </td>
                <td>
                    @item.Type
                </td>
                <td>
                    @item.Amount
                </td>
                <td>
                    @item.Price
                </td>
            </tr>
        }
    </table>
    <nav class="center">
        @Html.PageLinks(Model.PageCount, Model.PageIndex, i => Url.Action(ViewBag.Action, new { pageIndex = i }))
    </nav>
}
else
{
    @:温馨提示: 没有数据哦
}
